package com.cskaoyan.catmall.dao;

import com.cskaoyan.catmall.model.bo.WxCommentPostBo;
import com.cskaoyan.catmall.model.vo.ListVo;
import com.cskaoyan.catmall.model.vo.UserInfoVo;
import com.cskaoyan.catmall.model.vo.WxCommentPostVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface WxCommentMapper {
    ListVo[] getListById(@Param("valueId") Integer valueId, @Param("type") Integer type, @Param("showType") Integer showType,
                         @Param("start") Integer start, @Param("limit") Integer limit);

    UserInfoVo getUserById(String userId);


    List<Integer> getPictureCountByIdAndType(Integer valueId, Integer type);

    void saveComment(WxCommentPostBo wxCommentPostBo);

    WxCommentPostVo getInfo(Integer id);

    Integer getNumByValueIdAndType(Integer valueId, Integer type);
}
